package com.rybbaby.tss.front.tssTransitionFeesSet.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.front.tssTransitionFeesSet.dao.ITssTransitionFeesSetGroupDao;
import com.rybbaby.tss.front.tssTransitionFeesSet.entity.TssTransitionFeesSetGroup;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description 过渡收费设置数据库操作实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:43:26
 */
@Repository
public class TssTransitionFeesSetGroupDaoImp extends GenericDao<TssTransitionFeesSetGroup> implements ITssTransitionFeesSetGroupDao {

    /**
     * 根据过渡id和类型修改
     *
     * @param feesSetId
     * @param type
     * @return
     */
    @Override
    public List<TssTransitionFeesSetGroup>  getListByFeesSetIdAndType(String feesSetId, Integer type) {
        return this.findByHql(" from TssTransitionFeesSetGroup where feesSetId=? and type=? ", new Object[]{feesSetId, type});
    }
}
